This function is a sum of gaussians plus a constant.
It uses a variable number of parameters. The number you
want must be chosen when you select the function. The
function has the form:
f (
x) =
ai+2e-()2 +
an-1.
You must choose 3n + 1 parameters, where n is the number of
gaussians you want. This function converges slowly for more
than 2 gaussians, but it usually does converge. If the
peaks in your data are separated by several widths, you
should window the data and fit the peaks separately first,
and then do a final fit on the whole data set.